package com.ruoyi.system.domain;

import java.time.LocalDateTime;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户标签关系对象
 *
 * @author 区嘉盛
 * @date 2025-06-18
 */
@Schema(description = "用户标签关系对象")
public class UserTagsRel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    @Schema(title = "自增ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 用户ID */
    @Schema(title = "用户ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /** 标签ID */
    @Schema(title = "标签ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long tagId;

    /** 创建时间 */
    @Schema(title = "创建时间")
    private LocalDateTime createdTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setTagId(Long tagId)
    {
        this.tagId = tagId;
    }

    public Long getTagId()
    {
        return tagId;
    }

    public void setCreatedTime(LocalDateTime createdTime)
    {
        this.createdTime = createdTime;
    }

    public LocalDateTime getCreatedTime()
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("tagId", getTagId())
                .append("createdTime", getCreatedTime())
                .toString();
    }
}